#!/usr/bin/env bash


source ./include/fun.sh

if [ '' == ${JAVA_HOME} ]; then
    println "JAVA_HOME not set";
fi
if [ '' == ${ANDROID_HOME} ]; then
    println "ANDROID_HOME not set";
fi
if [ '' == `npm -v` ]; then
    println "cordova not set";
fi
if [ '' == `cordova -v` ]; then
    println "cordova not set";
fi



case ${1} in
"build")
    cd ${WORKSPACE_DIR}/app/${2}
    println ${WORKSPACE_DIR}/app/${2}
    cordova build ios;
esac
